home *** CD-ROM | disk | FTP | other *** search
- #!/bin/bash
- #
- # $Header: /usr/bfr/src/test/RCS/fts-f2si,v 1.1 1995/01/18 17:39:14 abel Exp $
- #
- #********************************************
- #
- # FORTRAN -> subbr info translator
- #
- #********************************************
- #
- # Written by Alexander L. Belikoff, 1994
- # Copyright (C)1994 Alexander L. Belikoff
- #
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- #********************************************
- #
- # $Log: fts-f2si,v $
- # Revision 1.1 1995/01/18 17:39:14 abel
- # Initial revision
- #
- #
- #********************************************
-
-
- if [ $# -lt 1 ] ; then
- echo "Usage: `basename $0` fortran_file fortran_file ...
-
- For each file foo.f on the command line, outputs foo.si - a subroutine
- information file. The .si file contains information about each
- subroutine and function declared in foo.f, such as its arguments,
- and local variables (and their types and dimensions), and included
- files. The data is output in an easy to parse format for use by tools
- such as make-test-routines and an as yet unreleased f2c-stab file
- generator.
- "
- exit 1
- fi
-
- for module in $@ ; do
-
- resfile=`basename $module .f`.si
-
-
- if [ ! -f $module ] ; then
- echo "`basename $0`: ERROR: $module does not exist."
- fi
-
-
- fts-f-strip-cmts $module |
- fts-f-unsplit |
- fts-f-split-decls |
- fts-f2si.awk MODULE=$module > $resfile
-
- done
-
- # end of $Source: /usr/bfr/src/test/RCS/fts-f2si,v $
-